<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

//  CI 2.0 Compatibility
if(!class_exists('CI_Model')) { class CI_Model extends Model {} }

class Config_model extends CI_Model {
	function get($var) {
		$item = $this->db->select()->from('config')->where('config_name', $var)->get()->row_array();
		return $item['config_value'];
	}
}
?>